package data.nanjing.expo.models.domain.dto.exhibition;

import data.nanjing.expo.models.domain.exhibition.ExhibitionActivity;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 上传展会活动数据格式
 *
 * @author ChanJi
 * @create 2018-06-30 23:58
 **/
public class ExpoActivityDto {
    @NotNull(message = "展会id不能为空")
    private Integer expoId;
    @NotNull(message = "展会活动不能为空")
    @Valid
    private List<ExhibitionActivity> activityList;

    public Integer getExpoId() {
        return expoId;
    }

    public void setExpoId(Integer expoId) {
        this.expoId = expoId;
    }

    public List<ExhibitionActivity> getActivityList() {
        return activityList;
    }

    public void setActivityList(List<ExhibitionActivity> activityList) {
        this.activityList = activityList;
    }

    @Override
    public String toString() {
        return "ExpoActivityDto{" +
                "expoId=" + expoId +
                ", activityList=" + activityList +
                '}';
    }
}
